package com.hxc.basicdata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 社区数据信息对象 t_community_info
 * 
 * @author hxc
 * @date 2021-08-12
 */
public class TCommunityInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 村民id */
    @Excel(name = "村民id")
    private Long villagerId;
    /** 网格名称 */
    @Excel(name = "网格名称")
    private String areaName;
    /** 职务 */
    @Excel(name = "职务")
    private String position;
    /** 网格人数 */
    @Excel(name = "网格人数")
    private Integer areaNum;
    /** 党员人数 */
    @Excel(name = "党员人数")
    private Integer partyNum;
    /** 人员名单 */
    @Excel(name = "人员名单")
    private String members;
    /** 常住人口 */
    @Excel(name = "常住人口")
    private Integer oftenNum;
    /** 流动人口 */
    @Excel(name = "流动人口")
    private Integer flowNum;
    /** 企业数量 */
    @Excel(name = "企业数量")
    private Integer companyNum;

    /** ----------------------------------表关联字段----------------------------- */
    /** 村民名称 */
    @TableField(exist = false)
    private String villageName;
    /** 村民电话 */
    @TableField(exist = false)
    private String phone;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public Long getVillagerId() { return villagerId; }
    public void setVillagerId(Long villagerId) { this.villagerId = villagerId; }

    public void setAreaName(String areaName)
    {
        this.areaName = areaName;
    }
    public String getAreaName() 
    {
        return areaName;
    }

    public void setPosition(String position) 
    {
        this.position = position;
    }
    public String getPosition() 
    {
        return position;
    }

    public void setAreaNum(Integer areaNum) 
    {
        this.areaNum = areaNum;
    }
    public Integer getAreaNum() 
    {
        return areaNum;
    }

    public void setPartyNum(Integer partyNum) 
    {
        this.partyNum = partyNum;
    }
    public Integer getPartyNum() 
    {
        return partyNum;
    }

    public void setMembers(String members) 
    {
        this.members = members;
    }
    public String getMembers() 
    {
        return members;
    }

    public void setOftenNum(Integer oftenNum) 
    {
        this.oftenNum = oftenNum;
    }
    public Integer getOftenNum() 
    {
        return oftenNum;
    }

    public void setFlowNum(Integer flowNum) 
    {
        this.flowNum = flowNum;
    }
    public Integer getFlowNum() 
    {
        return flowNum;
    }

    public void setCompanyNum(Integer companyNum) 
    {
        this.companyNum = companyNum;
    }
    public Integer getCompanyNum() 
    {
        return companyNum;
    }

    public String getVillageName() { return villageName; }
    public void setVillageName(String villageName) { this.villageName = villageName; }

    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("villagerId", getVillagerId())
            .append("areaName", getAreaName())
            .append("position", getPosition())
            .append("areaNum", getAreaNum())
            .append("partyNum", getPartyNum())
            .append("members", getMembers())
            .append("oftenNum", getOftenNum())
            .append("flowNum", getFlowNum())
            .append("companyNum", getCompanyNum())
            .append("createTime", getCreateTime())
            .append("villageName", getVillageName())
            .append("phone", getPhone())
            .toString();
    }
}
